/**sigqueue send signal*/
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<unistd.h>
#include<signal.h>

int main(int argc,char **argv)
{
	printf("13_test start\n");
	union sigval sig_val;
	int pid;
	int sig;
	pid=atoi(argv[1]);
	sig=atoi(argv[2]);
	printf("pid:%d,sig:%d\n",pid,sig);

	sig_val.sival_int=10;
	if(-1==sigqueue(pid,sig,sig_val)){
		perror("sigqueue error");
		exit(-1);
	}
	puts("signal send success");
	puts("13_test end");
	return 0;
}
